# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=harec
pkgver=0.24.0
pkgrel=0
pkgdesc="The Hare compiler"
url="https://harelang.org"
arch="x86_64 aarch64 riscv64"
license="GPL-3.0-only"
depends="qbe"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/harec/archive/$pkgver.tar.gz
"

build() {
	cp configs/linux.mk ./config.mk
	make PREFIX=/usr ARCH=$CARCH
}

check() {
	make ARCH=$CARCH check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
aab347351bcd748a98e3a58f1ff9a0d194aea907d6ebfacbc7e10671e018fb5ce296e71119ab975e3a1e66ba439d7b706943082d57af2459e694856a89453d8d  harec-0.24.0.tar.gz
"
